package com.grj.parking.drools.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 设备操作日志表
 * @TableName device_operation_log
 */
@TableName(value ="device_operation_log")
@Data
public class DeviceOperationLog implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 设备ID
     */
    @TableField(value = "device_id")
    private Long deviceId;

    /**
     * 操作类型
     */
    @TableField(value = "operation_type")
    private String operationType;

    /**
     * 操作内容
     */
    @TableField(value = "operation_content")
    private String operationContent;

    /**
     * 操作员ID
     */
    @TableField(value = "operator_id")
    private Long operatorId;

    /**
     * 操作员名称
     */
    @TableField(value = "operator_name")
    private String operatorName;

    /**
     * 操作时间
     */
    @TableField(value = "operation_time")
    private Date operationTime;

    /**
     * 操作结果(0-失败,1-成功)
     */
    @TableField(value = "result")
    private Integer result;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}